Don't dereference context when it may be NULL. (#62344)
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 18 Oct 2001 20:12:24 +0000 (20:12 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 18 Oct 2001 20:12:24 +0000 (20:12 +0000)
        * io-xbm.c (gdk_pixbuf__xbm_image_load_real): Don't dereference
        context when it may be NULL. (#62344)

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-xbm.c

index e60204ab0e9feaadd3db54eccc600881c43f6e36..5bcece744bcf5a8fefde7e346b08fe9c7667d64b 100644 (file)
@@ -1,3 +1,8 @@
+2001-10-18  Matthias Clasen  <matthiasc@poet.de>
+
+       * io-xbm.c (gdk_pixbuf__xbm_image_load_real): Don't dereference
+       context when it may be NULL. (#62344)
+
 2001-10-16  Matthias Clasen  <matthiasc@poet.de>
 
        * gdk-pixdata.c, gdk-pixdata.h: Documentation.
index 47ce269f67dfb5a1f8b444b61f5e2b59b06a226e..c989ada04bc993aa9958fe566d91cc4bc8a962fd 100644 (file)
@@ -281,8 +281,7 @@ gdk_pixbuf__xbm_image_load_real (FILE *f, XBMData *context, GError **error)
                 g_set_error (error,
                              GDK_PIXBUF_ERROR,
                              GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
-                             _("Invalid XBM file: %s"),
-                             context->tempname);
+                             _("Invalid XBM file"));
                return NULL;
        }